<?php
// +----------------------------------------------------------------------
// | Description: Banners management
// +----------------------------------------------------------------------
// | Author: orchief
// +----------------------------------------------------------------------
// | Date: 2018-02-08 19:09:12
// +----------------------------------------------------------------------

namespace app\client\controller;

use app\common\controller\Rest;

class Banners extends Rest
{
    public $modelName = 'Banner';
    public function _initialize()
    {
        parent::_initialize();
        // $this -> abort(!$this -> isClient, 'Permission denied', 403);
    }

    public function save()
    {
        $res = self::$model->createData($this->param);
        $this->checkRes($res, self::$model -> getLastInsID(), self::$model->getError());
    }
}
